package DBLayer;

import java.util.List;

import modelLayer.PartSalesOrder;
import modelLayer.SalesOrder;

public interface IFDBPartSalesOrder {
	
	//return all PartSalesOrders
	public List<PartSalesOrder> getAllPartOrders(boolean retriveAssociation);
	
	//find partSalesOrder by ID
	public PartSalesOrder findPartSalesOrder(String partSalesOrderID, boolean retriveAssociation);
	
	//find partSalesOrder by pid ID
	public PartSalesOrder searchProductID(String pid, boolean retriveAssociation);
	
	//insert PartSalesOrder to database
	public int insertPartSalesOrder(PartSalesOrder part, SalesOrder s, boolean retriveAssociation) throws Exception;
	
	//update PartSalesOrder
	public int updatePartSalesOrder(PartSalesOrder part, boolean retriveAssociation);
	
	//delete PartSalesOrder
	public int delete(String partSalesOrderID);
	
	
	
	
	

}
